package grape.base.rest.client.impl.area;

import grape.base.rest.area.mvc.AreaInnerController;
import grape.base.rest.client.area.AreaClient;
import grape.base.service.area.po.Area;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Created by yangwei
 * Created at 2020/5/8 17:44
 */
@Component
public class AreaClientImpl implements AreaClient {


    @Autowired
    private AreaInnerController areaInnerController;

    @Override
    public String trans(String type, String key) {
        return areaInnerController.trans(type,key);
    }

    @Override
    public boolean support(String type) {
        return areaInnerController.support(type);
    }

    @Override
    public Area getAreaById(String id) {
        return areaInnerController.getAreaById(id);
    }

}
